package org.dim.oa.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@NoArgsConstructor
@AllArgsConstructor
@Data
@Builder
@TableName("tb_leave")
public class LeaveEntity implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer day;
    private Date startTime;
    private Date endTime;
    //springbootjpa---如果数据库里面该字段用的是时间戳的类型，（字段不为空，且默认值是current——time）
    //这里用Date二者会映射不胜，程序运行包sql语句错误---currentTime似乎是hibernate关键字
    private Date curTime;
    private String reason;
    private String userName;
    private String currentProcess;
    private String status;
    private String pdfKey;
    //流程实例
    private String proInsId;

    private Integer processType;


}
